package com.jiangdong.eureka.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class FeignController {

    @Autowired
    FeignTest feignTest;

    @GetMapping("/feign/{id}")
    public String test(@PathVariable("id")String id){
        return "----->" + feignTest.test(id) + id;
    }

}
